package org.example.k8s_cloudplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class Pod {
    @TableId(value = "id", type = IdType.AUTO) // 自动生成
    private Integer id;
    private String name;
    @TableField(value = "userid")
    private Integer userID;//此项将被作为ns创建依据
    private Integer memory;
    private Integer cpu;
    @TableField(value = "image_os")
    private String imageOS;
    @TableField(value = "image_version")
    private String imageVersion;
    @TableField(value="nodeport")
    private Integer nodePort;
    @TableField(value="expirationtime")
    private Date expirationTime;
    private Integer status;//0:激活,1:注销
}
